//android材质设计
import 'package:flutter/material.dart';

//ios扁平化
import 'package:flutter/cupertino.dart';
import 'package:flutter_app_study/activity/BiliActivity.dart';
import 'package:flutter_app_study/cost/Cols.dart';
import 'package:flutter_custom_dialog/flutter_custom_dialog.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:provider/provider.dart';

import 'bean/CounterModel.dart';

CounterModel count = CounterModel(24);

void main() {
  Provider.debugCheckInvalidValueType = null;
  runApp(ChangeNotifierProvider.value(
    value: count,
    child: MyApp(),
  ));
//  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return FlutterEasyLoading(
      child: MaterialApp(
        title: 'Flutter Demo',
        debugShowCheckedModeBanner: true,
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: BiliActivity(),
      ),
    );
  }
}
